package com.windea.study.springcloud.feign.feign.fallback;

import com.windea.study.springcloud.feign.feign.HelloFeign;
import org.springframework.stereotype.Component;

// 必须是一个组件且继承自对应的feign接口
@Component
public class HelloFeignFallback implements HelloFeign {
	@Override
	public String hello(String name) {
		return "an error occurred.";
	}
}
